/**
 * Project Name:framework-webapi
 * File Name:Response.java
 * Package Name:cn.easysw.framework.webapi.domain
 * Date:2015年11月25日下午2:20:25
 * Copyright (c) 2015, www.windo-soft.com All Rights Reserved.
 */

package ink.tiptop.common.domain.rsp;


import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;

/**
 * 2020年08月03日20:09:44 zjf
 */
public abstract class Response implements Serializable {

    /**
     * serialVersionUID:TODO(用一句话描述这个变量表示什么).
     *
     * @since JDK 1.6
     */
    private static final long serialVersionUID = 1L;

    @JsonProperty("RSPCD")
    public String rspCode;

    @JsonProperty("RSPMSG")
    public String rspMsg;

    public Response(int code, String msg) {
        this.rspCode = String.format("%08d", code);
        this.rspMsg = msg;
    }

    public Response(String code, String msg) {
        this.rspCode = code;
        this.rspMsg = msg;
    }

    public String getRspCode() {
        return rspCode;
    }

    public String getRspMsg() {
        return rspMsg;
    }

}
